.class Lcom/example/m6wmr/NoticlistActivity$5;
.super Ljava/lang/Thread;
.source "NoticlistActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/NoticlistActivity;->getorderlist()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/NoticlistActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/NoticlistActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/NoticlistActivity$5;->this$0:Lcom/example/m6wmr/NoticlistActivity;

    .line 266
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 15

    .prologue
    .line 268
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 270
    iget-object v12, p0, Lcom/example/m6wmr/NoticlistActivity$5;->this$0:Lcom/example/m6wmr/NoticlistActivity;

    # getter for: Lcom/example/m6wmr/NoticlistActivity;->temporderls:Ljava/util/List;
    invoke-static {v12}, Lcom/example/m6wmr/NoticlistActivity;->access$4(Lcom/example/m6wmr/NoticlistActivity;)Ljava/util/List;

    move-result-object v12

    invoke-interface {v12}, Ljava/util/List;->clear()V

    .line 271
    new-instance v5, Landroid/os/Message;

    invoke-direct {v5}, Landroid/os/Message;-><init>()V

    .line 272
    .local v5, "msg":Landroid/os/Message;
    iget-object v12, p0, Lcom/example/m6wmr/NoticlistActivity$5;->this$0:Lcom/example/m6wmr/NoticlistActivity;

    .line 273
    const-string v13, "userInfo"

    const/4 v14, 0x0

    .line 272
    invoke-virtual {v12, v13, v14}, Lcom/example/m6wmr/NoticlistActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v6

    .line 274
    .local v6, "preferences":Landroid/content/SharedPreferences;
    const-string v12, "uid"

    const-string v13, ""

    invoke-interface {v6, v12, v13}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    .line 275
    .local v10, "uid":Ljava/lang/String;
    const-string v12, "pass"

    const-string v13, ""

    invoke-interface {v6, v12, v13}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 276
    .local v7, "pwd":Ljava/lang/String;
    new-instance v12, Ljava/lang/StringBuilder;

    iget-object v13, p0, Lcom/example/m6wmr/NoticlistActivity$5;->this$0:Lcom/example/m6wmr/NoticlistActivity;

    # getter for: Lcom/example/m6wmr/NoticlistActivity;->m:Lmyapp/MyApp;
    invoke-static {v13}, Lcom/example/m6wmr/NoticlistActivity;->access$9(Lcom/example/m6wmr/NoticlistActivity;)Lmyapp/MyApp;

    move-result-object v13

    invoke-virtual {v13}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v13

    invoke-static {v13}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v13

    invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 277
    const-string v13, "/index.php?ctrl=app&action=getNoticeList"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    .line 278
    const-string v13, "&uid="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "&pwd="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    .line 279
    const-string v13, "&page="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    iget-object v13, p0, Lcom/example/m6wmr/NoticlistActivity$5;->this$0:Lcom/example/m6wmr/NoticlistActivity;

    # getter for: Lcom/example/m6wmr/NoticlistActivity;->page:I
    invoke-static {v13}, Lcom/example/m6wmr/NoticlistActivity;->access$2(Lcom/example/m6wmr/NoticlistActivity;)I

    move-result v13

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "&datatype=json"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    .line 276
    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    .line 281
    .local v11, "url":Ljava/lang/String;
    const-string v12, "OrderlistACtivity"

    new-instance v13, Ljava/lang/StringBuilder;

    const-string v14, "getShopSource \u83b7\u53d6\u8ba2\u5355\u5217\u8868"

    invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v13, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-static {v12, v13}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 282
    iget-object v12, p0, Lcom/example/m6wmr/NoticlistActivity$5;->this$0:Lcom/example/m6wmr/NoticlistActivity;

    # getter for: Lcom/example/m6wmr/NoticlistActivity;->m:Lmyapp/MyApp;
    invoke-static {v12}, Lcom/example/m6wmr/NoticlistActivity;->access$9(Lcom/example/m6wmr/NoticlistActivity;)Lmyapp/MyApp;

    move-result-object v12

    invoke-static {v11, v12}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v9

    .line 286
    .local v9, "str":Ljava/lang/String;
    :try_start_0
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4, v9}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 287
    .local v4, "json":Lorg/json/JSONObject;
    const-string v12, "error"

    invoke-virtual {v4, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    const-string v13, "true"

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_0

    .line 290
    const-string v12, "msg"

    invoke-virtual {v4, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    iput-object v12, v5, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 291
    const/4 v12, 0x1

    iput v12, v5, Landroid/os/Message;->arg1:I

    .line 292
    iget-object v12, p0, Lcom/example/m6wmr/NoticlistActivity$5;->this$0:Lcom/example/m6wmr/NoticlistActivity;

    iget-object v12, v12, Lcom/example/m6wmr/NoticlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v12, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 325
    .end local v4    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 295
    .restart local v4    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v12, "msg"

    invoke-virtual {v4, v12}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v12

    if-eqz v12, :cond_1

    .line 297
    const/4 v12, 0x2

    iput v12, v5, Landroid/os/Message;->arg1:I

    .line 298
    iget-object v12, p0, Lcom/example/m6wmr/NoticlistActivity$5;->this$0:Lcom/example/m6wmr/NoticlistActivity;

    iget-object v12, v12, Lcom/example/m6wmr/NoticlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v12, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 317
    .end local v4    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 319
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    .line 322
    const/4 v12, 0x5

    iput v12, v5, Landroid/os/Message;->arg1:I

    .line 323
    iget-object v12, p0, Lcom/example/m6wmr/NoticlistActivity$5;->this$0:Lcom/example/m6wmr/NoticlistActivity;

    iget-object v12, v12, Lcom/example/m6wmr/NoticlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v12, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 301
    .end local v0    # "e":Lorg/json/JSONException;
    .restart local v4    # "json":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    const-string v12, "msg"

    invoke-virtual {v4, v12}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v3

    .line 303
    .local v3, "joo":Lorg/json/JSONObject;
    const-string v12, "noticeList"

    invoke-virtual {v3, v12}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    .line 305
    .local v2, "jo":Lorg/json/JSONArray;
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_1
    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v12

    if-lt v1, v12, :cond_2

    .line 314
    const-string v12, "\u6570\u636e\u957f\u5ea6"

    new-instance v13, Ljava/lang/StringBuilder;

    iget-object v14, p0, Lcom/example/m6wmr/NoticlistActivity$5;->this$0:Lcom/example/m6wmr/NoticlistActivity;

    # getter for: Lcom/example/m6wmr/NoticlistActivity;->temporderls:Ljava/util/List;
    invoke-static {v14}, Lcom/example/m6wmr/NoticlistActivity;->access$4(Lcom/example/m6wmr/NoticlistActivity;)Ljava/util/List;

    move-result-object v14

    invoke-interface {v14}, Ljava/util/List;->size()I

    move-result v14

    invoke-static {v14}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v14

    invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-static {v12, v13}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 315
    const/4 v12, 0x3

    iput v12, v5, Landroid/os/Message;->arg1:I

    .line 316
    iget-object v12, p0, Lcom/example/m6wmr/NoticlistActivity$5;->this$0:Lcom/example/m6wmr/NoticlistActivity;

    iget-object v12, v12, Lcom/example/m6wmr/NoticlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v12, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 306
    :cond_2
    new-instance v8, Lbean/NoticBean;

    invoke-direct {v8}, Lbean/NoticBean;-><init>()V

    .line 307
    .local v8, "rb":Lbean/NoticBean;
    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string v13, "title"

    invoke-virtual {v12, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v8, v12}, Lbean/NoticBean;->SetName(Ljava/lang/String;)V

    .line 308
    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string v13, "img"

    invoke-virtual {v12, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v8, v12}, Lbean/NoticBean;->SetImg(Ljava/lang/String;)V

    .line 309
    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string v13, "addtime"

    invoke-virtual {v12, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v8, v12}, Lbean/NoticBean;->setTime(Ljava/lang/String;)V

    .line 310
    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string v13, "content"

    invoke-virtual {v12, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v8, v12}, Lbean/NoticBean;->setContent(Ljava/lang/String;)V

    .line 311
    iget-object v12, p0, Lcom/example/m6wmr/NoticlistActivity$5;->this$0:Lcom/example/m6wmr/NoticlistActivity;

    # getter for: Lcom/example/m6wmr/NoticlistActivity;->temporderls:Ljava/util/List;
    invoke-static {v12}, Lcom/example/m6wmr/NoticlistActivity;->access$4(Lcom/example/m6wmr/NoticlistActivity;)Ljava/util/List;

    move-result-object v12

    invoke-interface {v12, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 305
    add-int/lit8 v1, v1, 0x1

    goto :goto_1
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 328
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 329
    monitor-exit p0

    return-void

    .line 328
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
